package com.dlc.apk.dao.entity;

import com.dlc.apk.utils.DateUtil;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;
import io.objectbox.annotation.Index;
import io.objectbox.annotation.IndexType;
import io.objectbox.annotation.NameInDb;
import io.objectbox.annotation.Unique;

@Entity
public class ShipmentOrder {
    @Id
    public long id;

    @NameInDb("orderNo")
    @Index(type = IndexType.HASH)
    public String orderNo;

    @NameInDb("shipmentData")
    public String shipmentData;

    @NameInDb("shipmentResult")
    public String shipmentResult;

    //创建的时间
    public Long createdAt = System.currentTimeMillis();
    //更新时间
    public Long updatedAt;
    //删除时间
    public Long deletedAt;

    public int resultReportTimes;//结果上报次数
    public long resultReportLastAt;//上次上报的时间
    public long resultReportAt;//结果上报成功的时间
}